//
//  UnityAdsRewardedVideoAd.h
//  WonderMobSDK
//
//  Created by CCYQ on 2022/2/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class UnityAdsRewardedVideoAd;

@protocol UnityAdsRewardedVideoAdDelegate <NSObject>

@optional

/**
 *  激励广告加载成功回调
 */
- (void)unityRewardVideoAdSuccessToLoadAd:(UnityAdsRewardedVideoAd *)rewardedVideoAd;

/**
 *  激励广告预加载失败回调
 */
- (void)unityRewardVideoAdFailToLoadAd:(UnityAdsRewardedVideoAd *)rewardedVideoAd error:(NSError *)error;


/**
 *  激励广告视图展示成功回调
 *  激励广告展示成功回调该函数
 */
- (void)unityRewardVideoAdDidPresentScreen:(UnityAdsRewardedVideoAd *)rewardedVideoAd;

/**
 *  激励广告视图展示失败回调
 *  激励广告展示失败回调该函数
 */
- (void)unityRewardVideoAdFailToPresent:(UnityAdsRewardedVideoAd *)rewardedVideoAd error:(NSError *)error;

/**
 *  激励广告展示结束回调
 *  激励广告展示结束回调该函数
 */
- (void)unityRewardVideoAdDidDismissScreen:(UnityAdsRewardedVideoAd *)rewardedVideoAd;


/**
 *  激励广告点击回调
 */
- (void)unityRewardVideoAdClicked:(UnityAdsRewardedVideoAd *)rewardedVideoAd;

/**
 *  激励广告点击跳过
 */
- (void)unityRewardVideoAdDidClickSkip:(UnityAdsRewardedVideoAd *)rewardedVideoAd;

@end



@interface UnityAdsRewardedVideoAd : NSObject


- (void)showAdFromRootViewController:(UIViewController *)rootViewController;

- (instancetype)initWithPlacementId:(NSString *)placementId delegate:(id<UnityAdsRewardedVideoAdDelegate>)delegate;

- (void)load;

- (void)showAdFromRootViewController:(UIViewController *)rootViewController;


@end

NS_ASSUME_NONNULL_END
